﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="DiscountReport.aspx.cs" Inherits="School.Pages.Accounting.DiscountReport" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>    
    <h2>
        تقرير الخصومات</h2>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%">
                <tr>
                    <td width="20%">
                        المجمع
                    </td>
                    <td>
                        <asp:DropDownList ID="LstCampuses" runat="server" OnSelectedIndexChanged="LstCampuses_SelectedIndexChanged"
                            AutoPostBack="True">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        الشهادة
                    </td>
                    <td>
                        <asp:DropDownList ID="LstCertificates" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstCertificates_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        المرحلة
                    </td>
                    <td>
                        <asp:DropDownList ID="LstStages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstStages_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        الصف
                    </td>
                    <td>
                        <asp:DropDownList ID="LstGrades" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstGrades_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        الفصل
                    </td>
                    <td>
                        <asp:DropDownList ID="lstClasses" runat="server" AutoPostBack="True" OnSelectedIndexChanged="lstClasses_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        من
                    </td>
                    <td>
                        <asp:TextBox ID="TxtFrom" runat="server"></asp:TextBox>
                        <asp:CalendarExtender ID="TxtFrom_CalendarExtender" runat="server" Enabled="True"
                            TargetControlID="TxtFrom" Format="yyyy-MM-dd">
                        </asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        إلى
                    </td>
                    <td>
                        <asp:TextBox ID="TxtTo" runat="server"></asp:TextBox>
                        <asp:CalendarExtender ID="TxtTo_CalendarExtender" runat="server" Enabled="True" TargetControlID="TxtTo"
                            Format="yyyy-MM-dd">
                        </asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        نوع الإيراد
                    </td>
                    <td>
                        <asp:ListBox ID="ListBox1" runat="server" Rows="10"></asp:ListBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="Button1" runat="server" Text="عرض" OnClick="Button1_Click" />
                    </td>
                </tr>
            </table>
            <asp:Panel ID="Panel1" runat="server" Visible="false">
                <table>
                    <tr>
                        <td style="width: 50%">
                            <div class="graybutton">
                                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Accounting/DiscountReportPrint.aspx"
                                    Target="_blank" Width="100%">طباعة</asp:HyperLink>
                            </div>
                        </td>
                        <td>                            
                        </td>
                    </tr>
                </table>
                الإجمالى : </asp:Label><asp:Label ID="LblTotal" runat="server" Text="Label"></asp:Label>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
                    CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
                    PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
                    <AlternatingRowStyle CssClass="GridItemAltername" />
                    <Columns>
                        <asp:BoundField DataField="StudentNumber" HeaderText="رقم الطالب" />
                        <asp:BoundField HeaderText="اسم الطالب" DataField="StudentNumber" />
                        <asp:BoundField DataField="Expense" HeaderText="الإيراد" />
                        <asp:BoundField DataField="VoucherNumber" HeaderText="رقم الإيصال" />
                        <asp:BoundField DataField="VoucherDate" HeaderText="تاريخ الإيصال" />
                        <asp:BoundField DataField="DiscountName" HeaderText="اسم الخصم" />                        
                        <asp:BoundField DataField="DiscountValue" HeaderText="قيمة الخصم" />
                    </Columns>
                    <FooterStyle CssClass="GridHeaderFooter" />
                    <HeaderStyle CssClass="GridHeaderFooter" />
                    <PagerStyle CssClass="GridPager" />
                </asp:GridView>
                <div class="graybutton">
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Accounting/DiscountReportPrint.aspx"
                        Target="_blank" Width="100%">طباعة</asp:HyperLink></div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
